package ocl;

import metamodels.ArgumentList;

public class FunctionRefExpression extends OclExpression {

	OclExpression exp;
	SimpleName name;
	ArgumentList alist;
	
	public FunctionRefExpression(OclExpression oclExpression,
			SimpleName simpleName, ArgumentList argumentList) {
		this.exp = oclExpression;
		this.name = simpleName;
		this.alist = argumentList;
	}

	@Override
	public String toK() {
		return exp.toK() + "->" + name.toK() + "(" + alist + ")"; 
	}
}
